<div class="bar bar-header">
    <div class="buttons">
        <button class="button button-icon icon ion-ios-minus-outline" ng-click="showDelete = !showDelete;"></button>
    </div>
    <div class="title">
        会话
    </div>
    <!--<div class="buttons">
        <button class="button button-icon icon ion-clock" ng-click="showHistory = !showHistory;" ng-show="showHistory">历史</button>
        <button class="button button-icon icon ion-soup-can" ng-click="showHistory = !showHistory;" ng-show="!showHistory">存档</button>
    </div>-->
</div>

<ion-content class="has-header">
    <ion-list show-delete="showDelete">
        <ion-item ng-show="sessions">
            <i class="icon ion-ios-pulse"></i>
            <b>当前会话</b>
        </ion-item>
        <ion-item ng-repeat="session in sessions" item="session" class="item-remove-animate" ng-click="change(session)">
            {{session.name}}
            <ion-delete-button class="ion-minus-circled" ng-click="close(session)"></ion-delete-button>
        </ion-item>

        <ion-item>
            <i class="icon ion-ios-pulse-strong"></i>
            <b>所有会话</b>
        </ion-item>
        <ion-item ng-repeat="sessionConfig in sessionConfigs" item="sessionConfig" class="item-remove-animate" ng-click="open(sessionConfig)">
            {{sessionConfig.name}}
            <ion-delete-button class="ion-minus-circled" ng-click="delete(sessionConfig)"></ion-delete-button>
            <ion-option-button class="button-calm" ng-click="edit(sessionConfig)">编辑</ion-option-button>
            <!--<ion-option-button class="button-assertive" ng-click="share(item)">Share</ion-option-button> 分享-->
        </ion-item>
    </ion-list>
</ion-content>